/**
 * created by 34786
 */
import Layout from "@/views/layout/Layout";
const authRouter = [
  {
    path: "/auth",
    component: Layout,
    redirect: "/auth/userAuth",
    name: "系统管理",
    meta: {
      title: "系统管理",
      icon: "el-icon-menu"
    },
    children: [
      {
        path: "userAuth",
        name: "用户授权",
        component: () => import("../userAuth.vue"),
        meta: {
          title: "用户授权",
          icon: "el-icon-menu",
          noCache: false
        }
      },
      {
        path: "userManage",
        name: "用户管理",
        component: () => import("../userManage.vue"),
        meta: {
          title: "用户管理",
          icon: "el-icon-menu",
          noCache: false
        }
      },
      {
        path: "roleModule",
        name: "角色授权",
        component: () => import("../roleModule.vue"),
        meta: {
          title: "角色授权",
          icon: "el-icon-menu",
          noCache: false
        }
      },
      {
        path: "roleManage",
        name: "角色管理",
        component: () => import("../roleManage.vue"),
        meta: {
          title: "角色管理",
          icon: "el-icon-menu",
          noCache: false
        }
      },
      {
        path: "module",
        name: "模块管理",
        component: () => import("../module.vue"),
        meta: {
          title: "模块管理",
          icon: "el-icon-menu",
          noCache: false
        }
      }
    ]
  }
];

export default authRouter;
